package com.dingup.paike.model.message;

import com.dingup.api.enums.ThirdPartyTypeEnum;
import com.dingup.paike.enums.MessageTypeEnum;
import com.dingup.paike.enums.MessageUserIdentityEnum;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "pk_message_details")
public class PkMessageDetails {
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 用户id
     */
    private String userId;
    //用户名称
    private String userName;
    //第三方id
    private String thirdPartyId;
    //第三方类型
    @Column(name = "third_party_type")
    private ThirdPartyTypeEnum thirdPartyType;
    //用户身份
    @Column(name = "user_identity")
    private MessageUserIdentityEnum userIdentity;
    @Column(name = "message_type")
    private MessageTypeEnum messageType;
    //课程id
    private String pkLessonId;
    //发送消息内容
    private String messageContent;
    //url
    private String messageUrl;
    //是否发送成功
    private Boolean ifSendSuccess;
    //是否点击确认
    private Boolean ifReceiveConfirm;
    //确认时间
    private Date confirmTime;
    //创建时间
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getThirdPartyId() {
        return thirdPartyId;
    }

    public void setThirdPartyId(String thirdPartyId) {
        this.thirdPartyId = thirdPartyId == null ? null : thirdPartyId.trim();
    }

    public ThirdPartyTypeEnum getThirdPartyType() {
        return thirdPartyType;
    }

    public void setThirdPartyType(ThirdPartyTypeEnum thirdPartyType) {
        this.thirdPartyType = thirdPartyType;
    }

    public MessageUserIdentityEnum getUserIdentity() {
        return userIdentity;
    }

    public void setUserIdentity(MessageUserIdentityEnum userIdentity) {
        this.userIdentity = userIdentity;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent == null ? null : messageContent.trim();
    }

    public String getMessageUrl() {
        return messageUrl;
    }

    public void setMessageUrl(String messageUrl) {
        this.messageUrl = messageUrl == null ? null : messageUrl.trim();
    }

    public Boolean getIfSendSuccess() {
        return ifSendSuccess;
    }

    public void setIfSendSuccess(Boolean ifSendSuccess) {
        this.ifSendSuccess = ifSendSuccess;
    }

    public Boolean getIfReceiveConfirm() {
        return ifReceiveConfirm;
    }

    public void setIfReceiveConfirm(Boolean ifReceiveConfirm) {
        this.ifReceiveConfirm = ifReceiveConfirm;
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPkLessonId() {
        return pkLessonId;
    }

    public void setPkLessonId(String pkLessonId) {
        this.pkLessonId = pkLessonId;
    }

    public MessageTypeEnum getMessageType() {
        return messageType;
    }

    public void setMessageType(MessageTypeEnum messageType) {
        this.messageType = messageType;
    }
}